{extend name="pc/admin/layout"/}
{block name="main"}
   <div class="g-1400 g-container" id="pjax-container">
        
<div class="bg-bai b rx3" id="vue-page">
<form id="form-config">
    <div class="t-v t-t">
        <div class="c-sidebar c-sidebar-h pb5 br">
            <div class="c-sidebar-title t-v hui bb">支付相关设置</div>
            <ul class="c-nav click-nav">
                <li><a href="{:url('pc/admin',['act'=>'pay','s'=>'e'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>支付配置</div>
                </a></li>
				<li><a href="{:url('pc/admin',['act'=>'pay','s'=>'o'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>订单列表</div>
                </a></li>
				<li class="active"><a href="{:url('pc/admin',['act'=>'pay','s'=>'vip'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>VIP价格</div>
                </a></li>
				<li><a href="{:url('pc/admin',['act'=>'pay','s'=>'daili'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>代理价格</div>
                </a></li>
				<li><a href="{:url('pc/admin',['act'=>'pay','s'=>'peie'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>配额价格</div>
                </a></li>
				<li><a href="{:url('pc/admin',['act'=>'pay','s'=>'fz'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>分站价格</div>
                </a></li>
            </ul>
        </div>
<div class="c-content bl">
            <div class="col-6 fl br" style="min-height:420px;">
                <div class="g-title t-v pl4 bb">
                    <div class="col-12 h t-v bold">VIP价格设置</div>
                </div>
				<div class="p5 o-h">
					<div class="pt1 pb3 in-text">
						<dt class="bold bb pr2 lan">VIP包月会员(元)</dt>
						<dd><input class="form w h8 bb" type="text" name="vip_price_1" value="{:config('sys_vip_price_1')}"></dd>
					</div>
					<div class="pt1 pb3 in-text">
						<dt class="bold bb pr2 lan">VIP季度会员(元)</dt>
						<dd><input class="form w h8 bb" type="text" name="vip_price_2" value="{:config('sys_vip_price_2')}"></dd>
					</div>
					<div class="pt1 pb3 in-text">
						<dt class="bold bb pr2 lan">VIP双季会员(元)</dt>
						<dd><input class="form w h8 bb" type="text" name="vip_price_3" value="{:config('sys_vip_price_3')}"></dd>
					</div>
					<div class="pt1 pb3 in-text">
						<dt class="bold bb pr2 lan">VIP年费会员(元)</dt>
						<dd><input class="form w h8 bb" type="text" name="vip_price_4" value="{:config('sys_vip_price_4')}"></dd>
					</div>
				</div>
            </div>
            <div class="col-6 fl bl" style="margin-left:-1px;">
                <div class="g-title t-v pl4 bb">
                    <div class="col-12 h t-v bold">活动促销配置</div>
                </div>
				<div class="p5 o-h">
					<div class="pt1 pb3 in-text">
						<dt class="bold bb pr2 lan">商品促销打折</dt>
						<dd><select class="form w h8 bb" name="is_shop_vip_zk" default="{:config('sys_is_shop_vip_zk')}">
							<option value="0">关闭</option>
							<option value="1" {if condition="config('sys_is_shop_vip_zk') eq 1"}selected {/if}>开启</option>
						</select></dd>
					</div>
					<div class="pt1 pb3 in-text">
						<dt class="bold bb pr2 lan">包月会员（折）</dt>
						<dd><input type="number" class="form w h8 bb" name="shop_vip_zk_1" value="{:config('sys_shop_vip_zk_1')}"></dd>
					</div>
					<div class="pt1 pb3 in-text">
						<dt class="bold bb pr2 lan">包季会员（折）</dt>
						<dd><input type="number" class="form w h8 bb" name="shop_vip_zk_2" value="{:config('sys_shop_vip_zk_2')}"></dd>
					</div>
					<div class="pt1 pb3 in-text">
						<dt class="bold bb pr2 lan">双季会员（折）</dt>
						<dd><input type="number" class="form w h8 bb" name="shop_vip_zk_3" value="{:config('sys_shop_vip_zk_3')}"></dd>
					</div>
					<div class="pt1 pb3 in-text">
						<dt class="bold bb pr2 lan">包年会员（折）</dt>
						<dd><input type="number" class="form w h8 bb" name="shop_vip_zk_4" value="{:config('sys_shop_vip_zk_4')}"></dd>
					</div>
				</div>
            </div>
        </div>
</div>
</form>
<div class="c-pagination o-h t-v">
        <div class="c-sidebar"></div>
        <div class="c-content h11 o-h g-btn t-v bt bl">
            <div class="col-12 h t-v f3 hui pl5 pr5 t-c">
			<button class="btn btn-qing btn-md w22 rx1" @click="saveConfig()">保 存 设 置</button></div>
        </div>
    </div>
</div>

    </div>
   {/block}
   {block name='foot'}
		<script>
        new Vue({
            el: '#vue-page',
            methods: {
                saveConfig: function () {
                    app.ajax("{:url('admin_ajax/config')}", $("#form-config").serialize(), function (data) {
                        if (data.code === 0) {
                            x.msg(data.message)
                        } else {
                            x.msg(data.message)
                        }
                    })
                }
            }
        });
    </script>
    {/block}